package com.cskaoyan.mapper;

import com.cskaoyan.bean.User1;
import com.cskaoyan.bean.UserExample;
import com.cskaoyan.bean.stat.UserStatVO;
import com.cskaoyan.weixin.bean.user.LoginUserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(User1 record);

    int insertSelective(User1 record);

    List<User1> selectByExample(UserExample example);

    User1 selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") User1 record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User1 record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User1 record);

    int updateByPrimaryKey(User1 record);

    //int selectUserNumber();
    Integer selectTotalUser();


    Integer selectIdByUsername(@Param("username") String username);

    LoginUserInfo selectLoginUserInfoById(@Param("id") Integer id);


    List<UserStatVO> selectStatOfUser();
}
